<div ng-controller="version">
    <h3>{{'versions' | translate }}:</h3>
    <table class="table table-condensed">
        <tr>
            <th>{{'name' | translate }}</th>
            <th>{{'label' | translate }}</th>
            <th>{{'size' | translate }}</th>
	        <th width="10%" ng-if="supportFile && (device != 'foxitReader' || isIEorEdge)">{{'action' | translate }}</th>
        </tr>
        <tr>
            <td colspan="4" ng-if="choseFile.versions == null">
	            {{'loading' | translate }}
            </td>
        </tr>
        <tr ng-repeat="version in choseFile.versions">
            <td class="break-word max-width80 long-words-handle">{{choseFile.name}}</td>
            <td>{{version['succinctProperties']['cmis:versionLabel']}}</td>
            <td>{{version['succinctProperties']['cmis:contentStreamLength'] | bytes}}</td>
            <td ng-if="supportFile && (device != 'foxitReader' || isIEorEdge)">
                <a class="fa fa-download fa-lg" ng-click="downloadVersion(version)"></a>
                <!--<button class="btn btn-danger btn-xs" ng-click="deleteVersion($index)">Remove</button>-->
            </td>
        </tr>
    </table>
</div>